<?php
/**
 * Last Changed:			$LastChangedDate$
 * @author					$Author$
 * @version					$Revision$
 * @package					Joomla.Site
 * @subpackage				com_bpshoppingcart
 * @copyright				Copyright (C) 2012 Binary Pursuits All Rights Reserved
 * @license					GNU General Public License version 3 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.tooltip');
$itemid = JRequest::getInt('Itemid');
?>

<div class="edit<?php echo $this->pageclass_sfx; ?>">
	<form action="<?php echo JRoute::_('index.php'); ?>" 
			id="adminForm" name="adminForm" method="post" class="form-validate">
		<fieldset>
		<legend><?php echo JText::_('COM_BPSHOPPINGCART_FORM_LABEL'); ?></legend>
			<dl>
				<dt><?php echo JText::_('COM_BPSHOPPINGCART_GRID_TITLE'); ?></dt>
				<dd><?php echo $this->escape($this->item->get('title')); ?></dd>
				<dt><?php echo JText::_('COM_BPSHOPPINGCART_GRID_DESC'); ?></dt>
				<dd><?php echo $this->escape(strip_tags($this->item->get('description'))); ?></dd>
				<dt><?php echo $this->form->getLabel('product_terms'); ?></dt>
				<dd><?php echo $this->form->getInput('product_terms'); ?></dd>
			</dl>
		</fieldset>
		<fieldset>
			<button class="button validate" type="submit"><?php echo JText::_('COM_BPSHOPPINGCART_FORM_SUBMIT'); ?></button>
			<a href="<?php echo JRoute::_('index.php?option=com_bpshoppingcart&Itemid='. $itemid); ?>">
				<?php echo JText::_('COM_BPSHOPPINGCART_FORM_CANCEL'); ?></a>
			<input type="hidden" name="option" value="com_bpshoppingcart" />
			<input type="hidden" name="task" value="product.add_to_cart" />
			<input type="hidden" name="product_id" value="<?php echo $this->item->id; ?>" />
			<?php echo JHtml::_( 'form.token' ); ?>
		</fieldset>
	</form>
</div>